package com.zlzxm.studentscreen.net.http.repository;



import com.zlzxm.studentscreen.net.http.RetrofitClient;
import com.zlzxm.studentscreen.net.http.api.VersionApi;

import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.Response;

/**
 * CREATE BY zlzxm ON 2021/7/27
 */
public class VersionRepository {

    VersionApi versionApi = RetrofitClient.get().create(VersionApi.class);


//   public   Observable<VersionRp> getVersion(){
//
//        return versionApi.getVersion("https://joy-zjzx.oss-cn-beijing.aliyuncs.com/version.json");
//    }

    public  Observable<Response<ResponseBody>> downLoad( String fileUrl){


        return versionApi.downLoad(fileUrl);
    }
}
